<?php

class LightPressPlugin {

    var $constructor_args = array();
    var $default_context = 0;
    var $description = 'LightPressPlugin base class';
    var $textareas = array();
    
    var $active = false;
    var $hooks = array();
    
    function LightPressPlugin(&$frontend, &$args, $dummy_run=false) {
        $this->_frontend =& $frontend;
        
        foreach ($this->constructor_args as $k=>$v) {
            if (isset($args[$k]))
                $this->$k = stripslashes($args[$k]);
        }
        
    }
    
    function hide() {
        $this->_frontend->tpl->setVar('PLUGIN_' . strtoupper(get_class($this)), '');
    }
    
    function run($hook, &$hook_data) {
    }
    
    function install() {
        // this function will run under WordPress, with a dummy frontend
        // if there's an error installing this plugin, return a string with
        // the error message
    }
    
}

?>